#include "StdAfx.h"
#include "share_space_html_view.h"

#include <commondef/glb_msg_define.h>
IMPLEMENT_DYNCREATE(share_space_html_view, CSmpHtmlView)

BEGIN_MESSAGE_MAP(share_space_html_view, CSmpHtmlView)
END_MESSAGE_MAP()

BEGIN_DISPATCH_MAP(share_space_html_view, CSmpHtmlView)
END_DISPATCH_MAP()

share_space_html_view::share_space_html_view(void)
{
}

share_space_html_view::~share_space_html_view(void)
{
}

void share_space_html_view::OnDocumentComplete(LPCTSTR lpszURL)
{
	CHtmlView::OnDocumentComplete(lpszURL);
	SetScriptDocument();
	::PostMessage(GetParent()->GetSafeHwnd(), WM_DOCUMENT_LOAD_COMPLETE, 0, 0);
}

share_space_html_view* share_space_html_view::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(share_space_html_view)));
	return (share_space_html_view*)m_pDocument;
}
void share_space_html_view::OnDraw(CDC* /*pDC*/)
{
	share_space_html_view* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
}

BOOL share_space_html_view::PreCreateWindow(CREATESTRUCT& cs)
{
	cs.lpszClass = AfxRegisterWndClass(0);
	return CView::PreCreateWindow(cs);
}
